﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infinity_World
{
    class Block
    {
        public Block(MaterialType Type)
        {
            switch (Type)
            {
                case MaterialType.air:
                    this.Textured = Air.Textured;
                    this.TextureNumber = Air.TextureNumber;
                    this.Translucency = Air.Tranlucency;
                    this.Transparency = Air.Transparency;
                    break;

                case MaterialType.stone:
                    this.Textured = Stone.Textured;
                    this.TextureNumber = Stone.TextureNumber;
                    this.Translucency = Stone.Translucency;
                    this.Transparency = Stone.Transparency;
                    break;

                case MaterialType.grass:
                    this.Textured = Grass.Textured;
                    this.TextureNumber = Grass.TextureNumber;
                    this.Translucency = Grass.Translucency;
                    this.Transparency = Grass.Transparency;
                    break;
            }
        }

        bool Textured;
        int TextureNumber;
        bool Translucency;
        byte Transparency;
    }
}
